<template>
    <div class="discoverContainer">
        <div class="navBar">
            <nav-bar @clickBarItem="clickBarItem" :navBarItem="navBarData"></nav-bar>
            <router-view class="discover"></router-view>
        </div>
    </div>
</template>

<script>
import NavBar from "../../components/NavBar/NarBar.vue";

export default {
    name: "Discover",
    components: {
        NavBar,
    },
    data() {
        return {
            navBarData: [
                { name: "推荐", path: "/recommend" },
                { name: "排行榜", path: "/rank" },
                { name: "歌手", path: "/songer" },
                { name: "歌单", path: "/sheetList" },
                { name: "MV", path: "/mv" },
            ],
        };
    },
    created() { },
    methods: {
        // 接收navbar传来的点击事件
        clickBarItem(path) {
            this.$router.push(path);
        },
    },
};
</script>

<style scoped>
*,
:after,
:before {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

blockquote,
body,
dd,
div,
dl,
dt,
fieldset,
form,
h1,
h2,
h3,
h4,
h5,
h6,
input,
legend,
li,
ol,
p,
td,
textarea,
th,
ul {
    margin: 0;
    padding: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

fieldset,
img {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

li {
    list-style: none;
}

caption,
th {
    text-align: left;
}

q:after,
q:before {
    content: "";
}

input:password {
    ime-mode: disabled;
}

:focus {
    outline: 0;
}

::-ms-clear,
::-ms-reveal {
    display: none;
}

body,
html {
    min-height: 100%;
}

body {
    -webkit-user-select: none;
    -webkit-text-size-adjust: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a,
img {
    -webkit-touch-callout: none;
    border: none;
}

body {
    background: none !important;
    color: #333;
}

body,
button,
input,
select,
textarea {
    font-size: 14px;
    line-height: 1;
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, STHeiTi,
        sans-serif;
}

input {
    line-height: normal;
}

a {
    color: #0ae;
    text-decoration: none;
    transition: none;
}

label {
    cursor: pointer;
}

body::-webkit-scrollbar {
    width: 8px;
    height: 10px;
}

body::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #f2f2f2;
}

body::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.2);
}
.bg_primary {
    background: #ffe12c;
}

.col_pri {
    color: #296294;
}

.clearfix:after,
.clearfix:before {
    content: ".";
    display: table;
}

.clearfix:after {
    clear: both;
}

.flex_c {
    display: flex;
    align-items: center;
}

.ellipsis {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.vjs-big-play-button {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
}

.discoverContainer {
    padding: 0 120px;
    margin: 0 auto;
    min-width: 1180px;
    max-width: 1640px;
}
</style>
